import pandas as pd
from arp_table_task import collection_arp_table
import logging

logging.basicConfig(filename='test1.log', level=logging.DEBUG)
logger = logging.getLogger(__name__)

# def backup_configure_with_netmiko(task_context):
#     # devices_obj = models.Devices.objects.filter(ip_address=task_context.host.name).first()
#     result = task_context.run(netmiko_send_command, command_string='show run')
#     print(result.result)
#     return result


if __name__ == '__main__':
    devices_df = pd.read_excel('devices.xlsx')
    devices = devices_df.to_dict('records')
    print(devices)
    collection_arp_table(devices)
